﻿using System;

public class Class1
{
	public Class1()
	{
		staatic void Main(string[] args)
		{
			int size = 12;
	#region//声明方式1
			/*
		int[]  monthArr = new int[size];
		//访问方式1
		//修改数组的每一个元素
		for（int i = 0; i < monthArr.Length;i++）
		{
			mothArr[i] = i * 10;//修改每个元素的值
			//Console.WriteLine(monthArr[i]);

		}
		//访问方式2(只读遍历)
		foreach(int num in monthArr)
		{
			//num *= 10;
		Console.WriteLine(num);
		}
		*/
		#endregion
		#region//声明方式2
		/*
		int[] bymonthDayArr = new int[13] { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
		//访问数组元素
		foreach (var dayNum in bymonthDayArr)
		{
			Console.WriteLine(dayNum);
		}
		//Console.WriteLine("请输入年/月/日：");
		string str = "2020/3/5"


	char[] separtor = { '/' };
		string[] strArr = str.Split(separtor);
		int month = int.Parse(strArr[0]);//月
		int year = int.Parse(strArr[1]);
		int day = int.Parse(strArr[2]);//年
		int sum = 0;
		for (int i = 1; i < month; i++)
		{
			sum += day; Console.WriteLine(($"这是一年中的第[sum]天")
	}

*/
		#endregion

	1	}
	}
}									
											